import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class Alcantarilla here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Alcantarilla extends Obstaculos
{
    World mundo=getWorld();
    public void act() 
    {
     if(Greenfoot.isKeyDown("a"))
     //puntos(); 
     super.mueveIzq();
      checaLimite();
    }
    
        
    public void checaLimite()
    {
        if(getX()==0)
        getWorld().removeObject(this);
    }
    
}
